package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-02
 */
@TableName("t_role")
public class Role extends Model<Role> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
                private String name;
                private String sn;
    @TableField("tenant_id")
                private Long tenantId;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public String getName(){
            return name;
            }

        public void setName(String name) {
            this.name = name;
            }

    public String getSn(){
            return sn;
            }

        public void setSn(String sn) {
            this.sn = sn;
            }

    public Long getTenantId(){
            return tenantId;
            }

        public void setTenantId(Long tenantId) {
            this.tenantId = tenantId;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "Role{" +
                ", id=" + id +
                ", name=" + name +
                ", sn=" + sn +
                ", tenantId=" + tenantId +
        "}";
        }
        }
